package geektime.spring.springbucks.baristaservice.integration;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

public interface Waiter {

  String NEW_ORDERS = "newOrders";
  String FINISHED_ORDERS = "finishedOrders";

  @Input(NEW_ORDERS)
  SubscribableChannel newOrders();

  @Output(FINISHED_ORDERS)
  MessageChannel finishedOrders();


}
